#ifndef _COMET_H
#define _COMET_H

#include "Iw2D.h"
#include "vector2.h"
#include "boundingbox.h"
#include "random.h"
#include "variables.h"

class Comet
{
public:
	Comet();
	~Comet();
	void SetupImages();
	void CleanupImages();
    void Render();
    void Update(int deltaTimeMs);

	BoundingBox boundingBox;

private:
	CIw2DImage* cometSprite;
	Vector2 position;
	Vector2 direction;
	int width;
	int height;
	int widthHalf;
	int heightHalf;
	int screenWidth;
	int screenHeight;
	float speed;
	int timeUnSpawned;
	BoundingBox screenBox;
	int timeElapsed;
	float randomSpawn;

	void Spawn();
};

#endif